package yueyong.salarymanagement.module.business.peony.controller;

import com.google.common.collect.Lists;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import yueyong.salarymanagement.common.anno.NoNeedLogin;
import yueyong.salarymanagement.common.anno.NoValidPrivilege;
import yueyong.salarymanagement.common.domain.ResponseDTO;
import yueyong.salarymanagement.constant.SwaggerTagConst;

import java.util.List;

/**
 * Copyright: yueyong (c) 2022
 *
 * @author he.shaorong
 * @version 1.0
 * @date 2022/1/26
 */
//@RestController
//@Api(tags = {SwaggerTagConst.Admin.BUSINESS})
public class MyTest {

    @GetMapping("/test/test")
    @ApiOperation(value = "test operation", notes = "test note")
    @NoValidPrivilege
    @NoNeedLogin
    public ResponseDTO<List<String>> getTestValue() {
        return ResponseDTO.succData(Lists.newArrayList("test, hello he muyang,"));
    }

}
